@import url(../pubiic/style.css);
@import url(../pubiic/common.css);
@import url(../pubiic/flex_layout.css);
@import url(../../font/iconfont.css);
@import url(../pubiic/theme-switch.css);
@import url(../pubiic/style.css);
@import url(../pubiic/style-media.css);

/* ================电影筛选================ */
.searcharea dl {
    margin: 1.8rem 0;
    padding: 24px;
    background-color: var(--deputy-color);
    border-radius: 24px;
}

.searcharea dt {
    padding: 0;
    font-size: 22px;
    line-height: 32px;
    text-align: left;
    margin: 1rem 0;
}

.searcharea dd {
    border-bottom: 1px solid #ccc;
    overflow: hidden;
    padding: 8px 0;
}

.searcharea h5 {
    float: left;
    width: 60px;
    font-size: 16px;
    font-weight: bold;
    line-height: 40px;
}

.searcharea ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.searcharea li {
    margin: 8px 0 8px 8px;

}

.searcharea li a {
    display: block;
    padding: 2px 10px;
    line-height: 24px;
}

.searcharea li a:hover,
.searcharea .cur a {
    background-color: #ff3d5e;
    border-radius: 8px;
    color: #FFFFFF;
}

/* ===============电影列表============ */
/* 排序 */
.product-list .order {
    display: flex;
    margin-bottom: 1.8rem;
}

.product-list .order dt {
    margin-left: .8rem;
    font-weight: bold;
}

.product-list .order dd {
    display: flex;
    padding: 0 1.2rem;
}

/* 产品内容 */
.product-content {
    display: flex;
    flex-wrap: wrap;
}

.product-content li {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.product-item:hover img {
    transform: scale(1.25);
}

.product-item:hover .product-info {
    visibility: visible;
    transform: scale(1.25);
    height: calc(100% - 45%);
    z-index: 11;
}

.product-item .poster {
    position: relative;
}

.product-item img {
    position: relative;
    width: 100%;
    object-fit: cover;
    z-index: 10;
}

.product-item .product-info {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    width: 100%;
    height: calc(100% - 55%);
    padding: .6rem;
    background-color: var(--deputy-color);
    text-align: left;
}

.product-item .product-info>div {
    padding: .3rem 0;
    font-size: .6rem;
    color: rgb(132, 132, 132);
    white-space: normal;
}

.product-item .product-info div:first-child {
    font-size: 1.2rem;
    color: var(--font-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-item .product-name {
    padding: .6rem 0;
    text-align: center;
    font-size: 18px;
}

@media screen and (max-width: 1200px) {
    .flex-col-4 {
        max-width: calc(4.16667 * 6%);
        flex: 0 0 calc(4.16667 * 6%);
    }

    .product-item .product-name {
        font-size: 16px;
    }

    .product-item img:hover {
        transform: scale(1.2);
    }
}

@media screen and (max-width: 960px) {
    .flex-col-4 {
        max-width: calc(4.16667 * 8%);
        flex: 0 0 calc(4.16667 * 8%);
    }

    .product-item .product-name {
        font-size: 14px;
    }

    .product-item img:hover {
        transform: scale(1.15);
    }
}

@media screen and (max-width: 600px) {
    .flex-col-4 {
        max-width: calc(4.16667 * 12%);
        flex: 0 0 calc(4.16667 * 12%);
    }

    .product-item .product-name {
        font-size: 10px;
    }

    .product-item img:hover {
        transform: scale(1.1);
    }
}